import request from '@/utils/request'

// 查询教师列表列表
export function listTeacherlist(query) {
  return request({
    url: '/teacher/teacherlist/list',
    method: 'get',
    params: query
  })
}

// 查询教师列表详细
export function getTeacherlist(id) {
  return request({
    url: '/teacher/teacherlist/' + id,
    method: 'get'
  })
}

// 新增教师列表
export function addTeacherlist(data) {
  return request({
    url: '/teacher/teacherlist',
    method: 'post',
    data: data
  })
}

// 修改教师列表
export function updateTeacherlist(data) {
  return request({
    url: '/teacher/teacherlist',
    method: 'put',
    data: data
  })
}

// 删除教师列表
export function delTeacherlist(id) {
  return request({
    url: '/teacher/teacherlist/' + id,
    method: 'delete'
  })
}
